grades=[]
while True:
    grade=int(input())
    if grade==-1:
        break
    grades.append(grade)
if grades==[]:
     average=0
else:

     average=sum(grades)//len(grades)
a=0
b=0
for x in grades:
    if x>=60:
        a+=1
    else:
        b+=1       
print(f"班级平均成绩为： {average}")
print(f"及格人数： {a}")
print(f"不及格人数： {b}",end="")
